
import java.util.ArrayList;
public class Zoo {
    private ArrayList<Animal> animals;

    public Zoo() {
        animals = new ArrayList<>();
    }

    public void addAnimal(Animal animal) {
        animals.add(animal);
    }

    public void makeSounds() {
        for (Animal animal : animals) {
            animal.sound();
        }
    }

    public void makeMoves() {
        for (Animal animal : animals) {
            animal.move();
        }
    }
}
